home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / HYPTRK40.ZIP / INTRO.TXT < prev    next >
Text File  |  1993-12-01  |  11KB  |  195 lines

  1. HyperTrack 4: ushering a new generation for WinHelp
  2.  
  3. Introduction
  4. ------------
  5. There has been a lot of interest in generating windows help files
  6. lately, with many excellent products coming out in the market.  However,
  7. as powerful as they can be in assisting the creation of help files,
  8. I feel they are still unable to overcome the weaknesses of the Microsoft
  9. Windows Help engine itself.  For example, the current WinHelp system
  10. has no facility to perform a search on all words of a document, being limited
  11. to only keywords that are specified during the compilation process.  Another
  12. request from help users is the desire to print multiple topics at one
  13. time.  Furthermore, there is also no direct indication from the help engine
  14. which topic is currently being displayed, ie. where does it fit in with the
  15. entire document as a whole.  This is due to the `hypertext' nature
  16. of the help system, where the viewer is left without the conventional indexing
  17. aid of page numbers.
  18.  
  19.  
  20. What is HyperTrack?
  21. ------------------
  22. Hence instead of just coming up with more powerful ways to create help files,
  23. I have developed an application that will `attach' itself to the WinHelp
  24. engine, in order to provide it with the features it lack.  This
  25. application (named `HyperTrack', since it is like a tracker for WinHelp)
  26. gets loaded up together with the help file and displays something like
  27. a dynamic table of contents of all the help topics.  It is dynamic because
  28. it can be interactively collapsed or expanded to show only up to certain
  29. heading levels, much like the outline view in most popular word processors.
  30. The topics shown are indented and color coded to provide easy recognition
  31. of which level they belong to, and these can be customised according to
  32. user preferences.
  33.  
  34. When a help topic is displayed, the topic line on HyperTrack
  35. will be highlighted so as to provide an immediate visual indication of
  36. where that topic is in relation to the entire document.  Of course, a user
  37. can then also jump to any other topic within the document by simply double
  38. clicking the intended destination and it will then come up on the help
  39. window.  A left click of the mouse will show it on the main help window,
  40. while a right click will display it on the secondary help window.  Hence
  41. what you can have are 2 help screens shown at the same time, useful for
  42. those topics that you keep having to refer back to constantly (remember
  43. how troublesome it was having to switch between 2 topics previously
  44. using the `Back' function of WinHelp?).  Now with HyperTrack, it's like
  45. having the table of contents for your book always handy and never having
  46. to put your thumb on it in order to return to a reference point.  Various
  47. short-cut keys are included to make life easy for those who like to keep
  48. their fingers on the keyboard, eg. pressing Enter will display the selected
  49. help topic, Ctrl-Enter shows in on the Secondary window, the Space Bar will
  50. toggle between setting the input focus on WinHelp or HyperTrack, and so
  51. forth.  Help is easily avaiable by pressing the H or F1 key.
  52.  
  53. As for keyword searches, the traditional help keywords (accessed via the
  54. Search button on WinHelp) is still there but there's the added ability
  55. to perform a search on every word in the document through HyperTrack.
  56. There's even some simple boolean capability when performing that search
  57. as well as the option to perform string-based searches on topic titles.
  58. Topics that match the search criteria will be shown on a Search-Results
  59. window, which can then be used to display the help topics by double clicking
  60. on them.  These topics can also be sorted in various ways.  Another good 
  61. thing is that all the keywords are kept in an ascii file (with the .key ext)
  62. so you can view and edit it if you want (eg. to remove certains words that
  63. you feel are redundant, etc.)
  64.  
  65.  
  66. What is HyperDoc?
  67. -----------------
  68. But will HyperTrack work on all help files?  Unfortunately not, though it is
  69. not impossible for that to happen in the future.  This is because in order
  70. for HyperTrack to know which topic is displayed by WinHelp, it needs a macro
  71. line inserted at every topic.  It also needs to know what are the titles for
  72. each of those topics, in order to display its table of contents.  That is
  73. why a help development system using the popular Word for Windows (Winword)
  74. word processor was created.  It is called `HyperDoc' and consists of various
  75. macros kept together in a document template.  Its principle of operation is
  76. extremely similar to most help development systems based on Winword macros,
  77. ie. use heading styles to represent a hierachical structure, so that the
  78. help file viewer can then successively progress through the document.
  79. Of course to make it more robust, HyperDoc will check for inconsistent heading
  80. styles (eg. jumping from level 1 to level 3) as well as facilitate the
  81. use of non-standard heading style names (eg. Chapter, Section, etc. instead
  82. of Heading 1, Heading 2, etc..)
  83.  
  84. There are convenient toolbar buttons added on the Winword screen so it'll
  85. be easy to access these macros, with on-line help also easily available by
  86. selecting the ? button or pressing Ctrl-Shift-Y or selecting HyperDoc Help
  87. from the Help menu.  So if you've got your help text already present in a
  88. Winword document, all you need to do to create a basic help file compatible
  89. with HyperTrack is simply attach it to the Hyperdoc.dot template, run the
  90. Process-Topic-Outlines and Scan-Keywords macro, and then call the help
  91. compiler (using the Run-Help-Compiler macro).  There's no need to hassle
  92. around with context strings, browse sequences, keywords, etc.  Even the
  93. help project file (.HPJ) is created automatically together with a MAP section
  94. so the help file can be called by applications using it for context-sensitive
  95. situations.
  96.  
  97. Of course for those who want to include cross references within the help
  98. file(ie. hypertext jumps to other topics), there's a Cross-Reference
  99. macro that will automatically search for the nearest matching topic
  100. containing the highlighted phrase.  It uses the HyperTrack application
  101. to allow easy selection of linkages by listing all the available topics you
  102. can jump to within that document, and automatically inserts the correct
  103. context strings for those topics.  For those who want to insert cross
  104. references manually, there's also a macro (Master-Topic-Listing) that will
  105. list out all the topics in the help document together with context strings,
  106. browse sequences and keywords (though these keywords may be somewhat redundant
  107. if you intend to use HyperTrack with it).  There are also some macros from
  108. the Windows Help Authoring Template (WHAT) included so you can insert your own
  109. help topics and edit them (eg. for your own popup windows, etc.)
  110.  
  111.  
  112. Bullets, Graphics and Multimedia
  113. --------------------------------
  114. For those who are worried about bullets, they are automatically converted
  115. from symbol fields in Winword to actual characters so they should appear in
  116. the help file.  As for displaying graphics, I've created an extended interface
  117. for WinGIF (another shareware product) so instead of inserting the graphic
  118. file into the help file (which may be difficult if it has lots of colors and
  119. is big), it can call up the WinGIF graphics viewer at runtime to display the
  120. graphic instead.  The extended interface consists of a small toolbar that will
  121. automatically zoom a selected rectangular area (by dragging the mouse across
  122. the area you want to zoom into) making it easier to view detailed pictures.
  123. In the future, I may design an extended interface for Sound Recorder so
  124. that it will automatically play selected .wav files....
  125.  
  126.  
  127. Other goodies
  128. -------------
  129. There are also various other macros included with Hyperdoc.dot
  130. to make life a lot easier when using Winword, eg. a Change Directory macro
  131. that also remembers the last directory and file-extension you opened, a
  132. Dynamic Zoom macro that has a scroll bar to control the display zoom
  133. percentage, as well as a dynamic Jump Page macro.  The good thing is these
  134. macros (as well as most of the other ones) are not copy protected so
  135. y